export function DOMPolyFill() {
    const polyArray = [Element.prototype, CharacterData.prototype, DocumentType.prototype];
    polyArray.forEach(function (item) {
        if(item.hasOwnProperty('remove')){
            return;
        }
        Object.defineProperty(item, 'remove', {
            configurable: true,
            enumerable: true,
            writable: true,
            value: function remove() {
                this.parentNode.removeChild(this);
            }
        });
    });
}